package vip.meeet.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;
import vip.meeet.condition.MomCondition;
import vip.meeet.condition.PapaCondition;


@Configuration
public class ConditionConfig {

    @Conditional(MomCondition.class)
    @Bean
    public String mom(){
        return "allen";
    }

    @Conditional(PapaCondition.class)
    @Bean
    public String papa(){
        return "bob";
    }
}
